﻿using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MoreEvent.Content.Items.CrazyThursday
{
    public class FriedChickenBoomerang : ModItem
    {
        public override void SetDefaults()
        {
            Item.damage = 25;
            Item.useStyle = ItemUseStyleID.Swing;
            Item.width = 24;
            Item.height = 24;
            Item.useAnimation = 13;
            Item.useTime = 13;
            Item.shootSpeed = 15f;
            Item.knockBack = 11f;
            Item.value = Item.sellPrice(gold: 3);
            Item.rare = ItemRarityID.Blue;
            Item.DamageType = DamageClass.Melee;
            Item.noMelee = true;
            Item.noUseGraphic = true;
            Item.UseSound = SoundID.Item1;
            Item.shoot = ModContent.ProjectileType<Projectiles.FriedChickenBoomerang>();
        }
     
        public override bool CanUseItem(Player player)
        {
            return player.ownedProjectileCounts[Item.shoot] < 1;
        }
    }
}
